package com.wq.spit.dao;

import com.wq.spit.entity.Spit;
import lombok.Data;
import org.springframework.data.annotation.Id;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.mongodb.repository.MongoRepository;
import org.springframework.stereotype.Repository;

import java.util.Date;

@Repository
public interface SpitDao extends MongoRepository<Spit,String> {
     Page<Spit>findByParentid (String parentid, Pageable pageable);
}
